<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .div1 {
            height: 100px;
            background-color: blue;
            top: 50px;
            left: 50px;
        }
        .div2 {
            height: 100px;
            position: relative;
            background-color: purple;
            top: 50px;
            left: 50px;
        }
        .div3 {
            height: 100px;
            background-color: pink;
            top: 50px;
            left: 50px;
        }
        .div4 {
            height: 100px;
            background-color: cyan;
            top: 50px;
            left: 50px;
        }
        .container {
            height: 200px;
            position: absolute;
            background-color: greenyellow;
        }
    </style>
</head>
<body>
    <div class="div1">第一个div</div>
    <div class="container">
        第二个div的父div
        <div class="div2">第二个div</div>
    </div>
    <div class="div3">第三个div</div>
    <div class="div4">第四个div</div>
</body>
</html>